//
//  SelectPermissionsCell.m
//  SDNestedTablesExample
//
//  Created by Bindx on 14-3-13.
//
//

#import "SelectPermissionsCell.h"

@implementation SelectPermissionsCell
@synthesize lineImgV = _lineImgV;
@synthesize pushImgV = _pushImgV;

- (void)dealloc
{
    _lineImgV = nil;
    _pushImgV = nil;
    self.selectitle = nil;
}
- (id) initWithCoder:(NSCoder *)aDecoder
{
    if((self = [super initWithCoder:aDecoder]))
    {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.contentView.backgroundColor = [UIColor whiteColor];
//        offCheckBox = [[UIImageView alloc] initWithImage: [UIImage imageNamed:@"blueLedSmallOff.png"]];
//        onCheckBox = [[UIImageView alloc] initWithImage: [UIImage imageNamed:@"blueLedSmall.png"]];
        self.glowView = [[UIImageView alloc] initWithFrame:CGRectMake(28, 14, 15, 15)];
        self.glowView.image = [UIImage imageNamed:@"global_select.png"];
        self.glowView.hidden = YES;
        [self addSubview:self.glowView];
        _lineImgV = [[UIImageView alloc]initWithFrame:CGRectMake(20, 45.5, 300, 0.5)];
        _lineImgV.image = [UIImage imageNamed:@"addline.png"];
        [self.contentView addSubview:_lineImgV];
        _pushImgV = [[UIImageView alloc]initWithFrame:CGRectMake(293, 15.5, 10, 17)];
        _pushImgV.image = [UIImage imageNamed:@"global_push.png"];
        [self.contentView addSubview:_pushImgV];
    }
    return self;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    if (selected)
    {
        self.glowView.hidden = NO;
    }
    else
    {
        self.glowView.hidden = YES;
    }
}


- (void) setupInterface
{
    [super setupInterface];
}

- (void) tapTransition
{
    [super tapTransition];
}

@end
